<?php
class WeddingModel extends MY_Model {
	
	function WeddingModel() {
		parent::MY_Model ('wedding');
	}
	
function get_wedding_by_email($email) {
		$sql = "select * from wedding where email = ?";
		$query = $this->db->query($sql, array($email));
		return $query->row_array();
	}
}